<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta name="keyword" content="${webSite.title}" />
		<title>${webSite.title}</title>
		<%@ include file="/jsps/modules/useragent.jsp"%>
		<script src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/ga.js"
			type="text/javascript"></script>
		<script
			src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/function.js"
			type="text/javascript"></script>
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/common.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/style_gys.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/style_gys_c.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/index.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/layout.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		
		<script type="text/javascript">
			$().ready(function() {
				$("#memberForm").validate( {
					rules : {
						mobile : {
							required : true
						},
					},
					success : function(label) {
						label.html("&nbsp;").addClass("checked");
					}
				});
			});
		</script>
		
	</head>
	<body marginwidth="0" marginheight="0">
		<div id="placeholder">
			<div id="content">
				<div class="zjmain" id="zjmain">

					<h3 class="fhao_son" id="subMenu">

						<div class="sb ms_on" 
							id="ck1">
							我的客户
						</div>
					</h3>

					<div class="sub_div" id="sub_div">
						
						<font style="color:red;"><s:actionmessage/></font>
						<div class="title1">
							<form action="epIndexNewsAction!addMemberByAgent.htm" method="post" name="memberForm">
							会员用户名:
							<input type="text" name="mobile"/>
							<input value=" 添加 " name="submit" type="submit"/>
							</form>
						</div>
						<h3 class="title1">
							我的客户
						</h3>
						
						<table cellspacing="0" cellpadding="0" class="result_tb">
							<tbody>
								<tr>
									<th>
										用户名/手机号码
									</th>
									<th>
										姓名
									</th>
									<th>
										区域
									</th>
									<th style="width: 120px;">
										电话
									</th>
									<th style="width: 180px;">
										QQ
									</th>
									<th style="width: 80px;">
										可用操作
									</th>
								</tr>

								<c:forEach items="${memberList}" var="member">
									<c:if test="${member.state == 1}">
										<tr>
											<td>
												${member.loginName}/${member.mobile}
											</td>
											<td>
												${member.name}
											</td>
											<td>
												${member.zone}
											</td>
											<td style="widtd: 120px;">
												${member.workphone}
											</td>
											<td style="widtd: 180px;">
												${member.address}
											</td>
											<td style="widtd: 60px;">
												<a href="epIndexNewsAction!deleteMember.htm?id=${member.id}"
													onClick="{if(confirm('你真的要删除吗?')){return true;}return false;}">
													删除 </a>
											</td>
										</tr>
									</c:if>
								</c:forEach>

							</tbody>
						</table>

				</div>
			</div>
		</div>
		</div>
		<div class="clear"></div>
		</div>
		</div>
		</div>
	</body>
</html>